projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8010cb
)
(gdb-many-windows): Leave window configuration
author
Nick Roberts
<nickrob@snap.net.nz>
Mon, 31 Oct 2005 09:28:48 +0000
(09:28 +0000)
committer
Nick Roberts
<nickrob@snap.net.nz>
Mon, 31 Oct 2005 09:28:48 +0000
(09:28 +0000)
intact if there is no gud-comint-buffer.
lisp/progmodes/gdb-ui.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/gdb-ui.el
b/lisp/progmodes/gdb-ui.el
index 5255b69e08dff2bbccfb07a5f0885de6f19b305a..c8f1d1db0207ceb41eb6923590881d05bfc76b79 100644
(file)
--- a/
lisp/progmodes/gdb-ui.el
+++ b/
lisp/progmodes/gdb-ui.el
@@
-2398,9
+2398,11
@@
of the inferior. Non-nil means display the layout shown for
(if (null arg)
(not gdb-many-windows)
(> (prefix-numeric-value arg) 0)))
- (condition-case nil
- (gdb-restore-windows)
- (error nil)))
+ (if (and gud-comint-buffer
+ (buffer-name gud-comint-buffer))
+ (condition-case nil
+ (gdb-restore-windows)
+ (error nil))))
(defun gdb-restore-windows ()
"Restore the basic arrangement of windows used by gdba.